#!/usr/bin/python3
# -*- coding: utf-8 -*-

from flask import Blueprint
from ..controllers.service_controller import ServiceController
from ..utils.api_response import ApiResponse

# 创建蓝图
service_bp = Blueprint('service', __name__)

# 所有接口都使用POST方法，保持统一风格
service_bp.route('/redis-test', methods=['POST'])(ServiceController.redis_test)

# 健康检查也改为POST方法
@service_bp.route('/health', methods=['POST'])
def health_check():
    """健康检查接口"""
    return ApiResponse.success({"status": "ok", "message": "服务运行正常"}) 